import request from "../util/request.js"

// 封装一个接口
export function recycling(queryParams){
	// console.log(queryParams)
	return request({
		// trending/anime
		url:'',
		methods:'get',
		
		// data:queryParams
		// data 作为请求主体被发送的数据
		// 只适用于 put、post和patch请求
		// params:{}是于get请求的参数
		params:queryParams
	})
}

export function login(loginParams){
	return request({
		// trending/anime
		url:'user/login',
		methods:'get',
		
		params:loginParams
	})
}

export function register(registerParams){
	return request({
		// trending/anime
		url:'/user/register',
		methods:'get',
		
		params:registerParams
	})
}

